package com.watson.springtest.rmi;

import org.springframework.remoting.rmi.RmiServiceExporter;

/**
 * @program: mytest
 * @description:
 * @author: zhangpeng348@jd.com
 * @date: 2019-07-24 21:15
 **/
public class RmiTest {



    public RmiServiceExporter rmiServiceExporter(SpitterService spitterService) {
        RmiServiceExporter rmiServiceExporter = new RmiServiceExporter();
        rmiServiceExporter.setService(spitterService);
        rmiServiceExporter.setServiceName("spitterService");
        rmiServiceExporter.setServiceInterface(SpitterService.class);
        return rmiServiceExporter;
    }
}
